﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Chat.API.Models
{
    /// <summary>
    /// 客户端连接的用户实体类
    /// </summary>
    public class User
    {
        /// <summary>
        /// 与服务端Hub建立连接的id
        /// </summary>
        public string ConnectionId { get; set; }
        public string Name { get; set; }
        public User(string name, string connectionId)
        {
            Name = name;
            ConnectionId = connectionId;
        }
    }
}